﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using 书易.Model;
using 书易.DAL;


namespace 书易.WEB
{
    public partial class GongN : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Member m= Session["u"] as Member;
          //  if(m==null){
           //     Response.Redirect(Server.UrlEncode(Request.Url.ToString()));
           //     return;
           // }
            if(TradeDal.AddOrUpdate(new Trade(){
                BCount=1,
                MID=1,
                BID=4939
            })>0){
                ClientScript.RegisterStartupScript(GetType(), "", "location.href='flow.aspx'", true);
            }
        }
    }
}